<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Prizm - {{ section }}</title>
    
	<!--<script language="Javascript" type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>-->
	<!-- Load the YUI Loader script: -->
	<script src="http://yui.yahooapis.com/2.6.0/build/yuiloader/yuiloader-min.js"></script>
	<script>
	var loader = new YAHOO.util.YUILoader({
		require: ["reset","base","fonts","grids","datasource", 
			"connection","get","dragdrop","json","paginator",
			"calendar","datatable","dom"],
		loadOptional: true,
		onSuccess: function() {
			{% block script %}{% endblock %}
		},
		onFailure: function(o) { 
			alert("error: " + YAHOO.lang.dump(o)); 
		}, 
		timeout: 10000,
		combine: true
	});
	loader.insert();
	</script>
	
	<link type="text/css" rel="stylesheet" href="/css/main.css" />
    <script language="Javascript" type="text/javascript" src="/js/main.js"></script>
    
</head>

<body class="yui-skin-sam">
	<div id="doc">
		
		<div id="hd" class="yui-g">
			<div class="yui-u first">
				<h1><a href="/">Prizm</a></h1>
				<h2>{{ section }}</h2>
			</div>
			<div id="user" class="yui-u">
				<ul>
					{% if user %}
					<li><a href="#">{{user.nickname}}</a></li>
					{% endif %}
					<li><a href="{{user_link}}">{{ user_action }}</a></li>
				</ul>
			</div>
		</div><!--#hd-->
		
		<div id="bd" class="yui-t1">
		
			<div id="sb" class="yui-b">
				<ul>
					<li><a href="/">Home</a></li>
					<li><a href="/feeds.html">Feeds</a></li>
				</ul>
			</div><!--#sb-->
			
			<div id="yui-main">
				<div id="ct" class="yui-b">
					{% block content %} huh? {% endblock %}
				</div><!--#ct-->
			</div>
			
		</div><!--#bd-->
		
		<div id="ft">
			{% block footer %}This is a footer{% endblock %}
		</div><!--#ft-->
	</div><!--#doc-->
	
</body>

</html>
